<script setup lang="ts">
// import useStore from '@/store';
// import { ref } from 'vue';
// const { list } = useStore();

// const changeName = () => {
//   list.changeName();
// }

// const asyncChangeName = () => {
//   list.asyncChangeName();
// }


// const name = ref('我是list组件')
</script>


<template>
  <!-- <div>{{name}}</div>
    <div>{{list.name}}</div>
    <div>{{list.add}}</div>
    <button @click="changeName">点击改变名字</button>
    <button @click="asyncChangeName">点击改变名字（异步）</button> -->
</template>

<style lang="less" scoped>
div {
  color: red;
}
</style>